package cn.com.surker.production.dao;

import cn.com.surker.production.entity.ProductionTransportPrice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 生产运输单价表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-12-05
 */
public interface ProductionTransportPriceDao extends BaseMapper<ProductionTransportPrice> {

    /**
     * 查询运输单价是否已存在重复单价
     * @param transportPrice
     * @return
     */
    ProductionTransportPrice findTakePrice(ProductionTransportPrice transportPrice);

	/**
	 * 查询合同运输时刻的单价
	 *
	 * @param tranConId
	 * @param carModel
	 * @param transportType
	 * @param roadType
	 * @param overLimit
	 * @param tranTime
	 * @return
	 */
	ProductionTransportPrice queryTranPrice(Long tranConId, Integer carModel, Integer transportType, Integer countType, Integer roadType, Integer overLimit, Double distance, String tranTime);

	/**
	 * 查询递增价格
	 *
	 * @param tranConId
	 * @param carModel
	 * @param transportType
	 * @param countType
	 * @param roadType
	 * @param overLimit
	 * @param tranTime
	 * @return
	 */
	ProductionTransportPrice queryIncrePrice(Long tranConId, Integer carModel, Integer transportType, Integer countType, Integer roadType, Integer overLimit, String tranTime);
}
